home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
the-kitchen-of-doom.swf
/
scripts
/
DefineSprite_104
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-03-14
|
1KB
|
52 lines
function SetAnimation(animID)
{
currAnim = animID;
switch(currAnim)
{
case ANIM_BACTERIA_INIT:
gotoAndStop("Init");
break;
case ANIM_BACTERIA_IDLE:
gotoAndStop("Idle");
break;
case ANIM_BACTERIA_WALK:
gotoAndStop("Walk");
break;
case ANIM_BACTERIA_CHASE:
gotoAndStop("Chase");
break;
case ANIM_BACTERIA_FROZEN:
gotoAndStop("Frozen");
break;
case ANIM_BACTERIA_SPRAYED:
gotoAndStop("Sprayed");
break;
case ANIM_BACTERIA_BURNT:
gotoAndStop("Burnt");
}
currFrame = 0;
}
function Pause()
{
if(!paused)
{
paused = true;
}
else
{
paused = false;
}
}
stop();
ANIM_BACTERIA_INIT = 0;
ANIM_BACTERIA_WALK = 1;
ANIM_BACTERIA_IDLE = 2;
ANIM_BACTERIA_CHASE = 3;
ANIM_BACTERIA_FROZEN = 4;
ANIM_BACTERIA_SPRAYED = 5;
ANIM_BACTERIA_BURNT = 6;
currAnim = ANIM_BACTERIA_INIT;
paused = false;
loop = true;
currFrame = 0;